//定义一个接口  类实现该接口
interface IFly {
    fly()
}
// 定义类  实现接口
class SuperMan implements IFly {
    fly() {
        console.log("I can fly")
    }
}
const hans = new SuperMan()

interface ISwim {
    swim()
}

//定义接口 继承上面两个接口
interface ISuper extends IFly, ISwim {}

class SuperPerson implements ISuper {
    fly(){}
    swim() {}
}

//实例化对象
const uzi = new SuperPerson()

